php get cookie by name preg_match

41

$cookie_name = 'cookie_';
foreach ($_COOKIE as $name => $value) {
    if (stripos($name,$cookie_name) === 0) {
        $cookies[] = $name;
    }
}

Comments

Submit
0 Comments